<%@ page language="java" pageEncoding="utf-8" %>
<%

//获取客户端所有cookie的办法
Cookie[] cookies = request.getCookies();

if(cookies!=null) {
	if(cookies.length>0) {
		for(Cookie c: cookies){
			if(c.getName().equals("a")){
				c.setMaxAge(-1);
				//c.setValue("");
			}
			out.print(c.getName()+"-"+c.getValue()+"<br/>");
		}
	}
}
%>